package com.tc.vms.iface;

/**
 * Created by yonghua.zhang on 2015/12/9.
 */
public abstract class VmsConsumerContext {
    private int delayLevelWhenReconsume;
    private final long ackIdx;

    public VmsConsumerContext(int delayLevelWhenReconsume, long ackIdx) {
        this.delayLevelWhenReconsume = delayLevelWhenReconsume;
        this.ackIdx = ackIdx;
    }

    public int getDelayLevelWhenReconsume() {
        return delayLevelWhenReconsume;
    }

    public void setDelayLevelWhenReconsume(int delayLevelWhenReconsume) {
        this.delayLevelWhenReconsume = delayLevelWhenReconsume;
    }

    public long getAckIdx() {
        return ackIdx;
    }
}
